<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:50px;"><Btn class="BtnSave" value="保存" ng-click="btnSave()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn value="放弃" ng-click="btnCancel()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
  <div class="LableDiv" style="width:50px;">
    <BtnFind DisplayName="查找" WindowTitle="检验标准" module="Module.QCStandard">
      <Column type="0" width="150px" displayname="物料" valuefield="ItemMaster.Name"></Column>
      <Column type="dropdownlist" width="150px" enum="ItemCategoryEnum" displayname="物料分类" valuefield="ItemCategory"></Column>
      <Column type="TextBox" width="150px" displayname="作业" valuefield="Work.Name"></Column>
      <Column type="TextBox" width="150px" displayname="质检指标" valuefield="QCNorm.Name"></Column>
      <Column type="TextBox" width="150px" displayname="标准值" valuefield="StandardValue"></Column>
      <Column type="NumberBox" width="150px" displayname="标准值上限" valuefield="ValueUpperLimit"></Column>
      <Column type="NumberBox" width="150px" displayname="标准值下限" valuefield="ValueLowerLimit"></Column>
    </BtnFind>
  </div>
  <div class="LableDiv" style="width:60px;"><Btn value="列表" ng-click="btnList()"></Btn></div>
  <PageButton module="Module.QCStandard"></PageButton>
</div>

<div class="row RowSpace">
  <div class="LableDiv"><label IsEmpty="false">物料</label></div>
  <div class="InputDiv">
    <Refer EntityName="ItemMaster" WindowTitle="料品" value="Module.QCStandard.FocusedRecord.ItemMaster">
      <Column type="0" width="150px" DisplayName="编码" valuefield="Code"></Column>
      <Column type="textbox" width="150px" DisplayName="名称" valuefield="Name"></Column>
      <Column type="dropdownlist" DisplayName="分类" width="150px" ValueField='ItemCategory' Enum="ItemCategoryEnum"></Column>
      <Column DisplayName="规格" width="150px" ValueField="Specification"></Column>
    </Refer>
  </div>
  <div class="LableDiv"><label>物料分类</label></div>
  <div class="InputDiv">
    <DropDownList value="Module.QCStandard.FocusedRecord.ItemCategory" enum="ItemCategoryEnum"></DropDownList>
  </div>
  <div class="LableDiv"><label>标准作业</label></div>
  <div class="InputDiv">
    <Refer EntityName="Work" WindowTitle="作业" value="Module.QCStandard.FocusedRecord.Work">
      <Column type="0" width="150px" DisplayName="编码" valuefield="Code"></Column>
      <Column type="textbox" width="150px" DisplayName="名称" valuefield="Name"></Column>
    </Refer>
  </div>
  <div class="LableDiv"><label>质检指标</label></div>
  <div class="InputDiv">
    <Refer EntityName="QCNorm" WindowTitle="质检指标" value="Module.QCStandard.FocusedRecord.QCNorm">
      <Column type="0" width="150px" DisplayName="编码" valuefield="Code"></Column>
      <Column type="textbox" width="150px" DisplayName="名称" valuefield="Name"></Column>
      <Column type="dropdownlist" DisplayName="类型" width="150px" ValueField='Type' Enum="TypeEnum"></Column>
      <Column DisplayName="单位" width="150px" ValueField="Unit"></Column>
    </Refer>
  </div>
</div>

<div class="row RowSpace">
  <div class="LableDiv"><label>标准值</label></div>
  <div class="InputDiv"><TextBox value="Module.QCStandard.FocusedRecord.StandardValue"></TextBox></div>
  <div class="LableDiv"><label>标准值上限</label></div>
  <div class="InputDiv"><NumberBox minvalue="0" value="Module.QCStandard.FocusedRecord.ValueUpperLimit"></NumberBox></div>
  <div class="LableDiv"><label>标准值下限</label></div>
  <div class="InputDiv"><NumberBox minvalue="0" value="Module.QCStandard.FocusedRecord.ValueLowerLimit"></NumberBox></div>
</div>
